﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ComputerizedRehabForms
{
    public partial class ExitForm : Form
    {
        public ExitForm()
        {
            InitializeComponent();
        }

        private void yes_button_Click(object sender, EventArgs e)
        {
            DataManager.hideExit();
            int choice = DataManager.getFormType();
            switch (choice) {
                case 0:
                    DataManager.hideBLBResults();
                    break;
                case 1:
                    DataManager.hideBellsTestResults();
                    break;
                case 2:
                    DataManager.hideBellsTestResults();
                    break;
                default:
                    break;
            }
            DataManager.showIntro();
        }

        private void no_button_Click(object sender, EventArgs e)
        {
            DataManager.hideExit();
        }

        private void ExitForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            DataManager.hideExit();
        }
    }
}
